<!-- /ezadm/template/board/ezbbsgrp_config_form.htm :: 2010-03-04 :: ksb -->
<script type="text/javascript">
//<![CDATA[
$(function() {
	//프로그램으로 뽑아낸 checkbox에 속성 부여
	$("input[name^=options]").attr({
		"class":"required",
		"title":"선택한 게시판의 정보중 적용할 대상을 선택해 주세요."
	});

	//폼체크
	var container1 = $("div#lay_error_container1");
	$("form[name=update_form]").validate({
		errorContainer: container1,
		errorLabelContainer: $("ol", container1),
		wrapper: "li",
		submitHandler: function(form) {
			if($("input[name=src_ebcf_id]").size() < 2) alert("그룹내 게시판이 2개이상이어야 일괄적용이 가능합니다.");
			else form.submit();
		}
	});
});
//]]>
</script>

<ul>
	<li class="blue">그룹 내 게시판의 설정값을 선택된 게시판의 설정값으로 일괄 변경처리합니다.</li>
</ul>

<form name="update_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="update" />
<input type="hidden" name="ebgp_id" value="<?=$_GET['id1']?>" />

	<table class="list">
	<caption><?=$group_name?> - 게시판 목록</caption>
	<col width="10%" /><col width="30%" /><col nowrap />
	<tr>
		<th>선택</th>
		<th>게시판아이디</th>
		<th>게시판명</th>
	</tr>
	<?php if (count($group_board_list)) { ?>
		<?php foreach ($group_board_list as $v) { ?>
		<tr class="list<?=$v['ebcf_use_flag']?>" onmouseover="g_mouse_over(this);" onmouseout="g_mouse_out(this);">
			<td><input type="radio" name="src_ebcf_id" class="required" value="<?=$v['ebcf_id']?>" title="일괄적용할 게시판을 선택해 주세요." /></td>
			<td><?=$v['ebcf_id']?></td>
			<td><?=$v['ebcf_pname']?></td>
		</tr>
		<?php } ?>
	<?php } else { ?>
		<tr>
			<td class="empty" colspan="3">관련 게시판이 없습니다.</td>
		</tr>
	<?php } ?>
	</table>

	<br />

	<?php if (count($group_board_list)) { ?>
	<br />
	<table class="form2" style="width:400px;margin: 0 auto;">
	<col width="25%" /><col width="75%" />
	<tr>
		<th>설정대상</th>
		<td><?=$Html->check_button('options[]', array('config' => '설정', 'add' => '추가항목', 'category' => '분류'))?></td>
	</tr>
	</table>

	<div id="lay_error_container1" class="error_container" style="width:400px;">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>


	<div class="util">
		<input type="submit" class="button" value="적용하기" />
		<input type="button" class="button" value="닫기" onclick="self.close();" />
	</div>
	<?php } ?>

</form>